package collection2;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;

/**
 * @Auther: 杨通通
 * @Date: 2024/10/27 23:09
 * @Description:
 */
public class map1 {

    public static void main(String[] args) {
        HashMap<String,String> map1 = new HashMap<>();
        map1.put("name","ytt");

        map1.put("age","12");

        System.out.println(map1.get("name"));;
        System.out.println(map1.get("name2"));
        System.out.println(map1.get("age"));
        System.out.println(map1.replace("age","13"));
        System.out.println(map1.get("age"));


        LinkedHashMap<String,String> map2 = new LinkedHashMap<>();
        String put = map2.put("name", "ytt");
//        map2.
//        map2.

    }

}